<h1>Edit Task</h1>

<pre>
<form action="" method="POST">

Description
<textarea name="description">{{ object.description }}</textarea>

Project
<select name="projects">
{% for project in project_list %}
  <option value="{{ project.id }}" {% ifequal object.project.id project.id %}selected{% endifequal %}>{{ project.name }}</option>
{% endfor %}
</select>

Category
<select name="categories">
{% for category in category_list %}
  <option value="{{ category.id }}" {% ifequal object.category.id category.id %}selected{% endifequal %}>{{ category.name }}</option>
{% endfor %}
</select>

Due Date
<input type="text" name="due_date" value="{{ object.due_date }}" />

<input type="checkbox" name="completed" {% if object.completed %}checked{% endif %}>
Completed?

<input type="submit">
    
</form>
</pre>